package com.fr.base.core.antlr;

public class TokenWithIndex extends CommonToken
{
  int index;

  public TokenWithIndex()
  {
  }

  public TokenWithIndex(int paramInt, String paramString)
  {
    super(paramInt, paramString);
  }

  public void setIndex(int paramInt)
  {
    this.index = paramInt;
  }

  public int getIndex()
  {
    return this.index;
  }

  public String toString()
  {
    return "[" + this.index + ":\"" + getText() + "\",<" + getType() + ">,line=" + this.line + ",col=" + this.col + "]\n";
  }
}